package com.sws.model.bean;

import java.util.Date;

public class B2SPrizePageBean {

	//分页限制数
	private Integer limits;
	//页数
	private Integer pages;
	//年份
	private Integer year;
	//级别
	private Integer level;
	//用户年级
	private Integer grade;
	//用户班级
	private Integer clazz;
	//用户学号
	private Integer no;
	//用户姓名
	private String name;
	
//================================================
	//根据year获得当年的起始
	public Date getYearStart() {
		if (year == null) {
			return null;
		}
		return new Date(this.year, 1, 1);
	}
	public Date getYearEnd() {
		if (year == null) {
			return null;
		}
		
		return new Date(this.year, 12, 31);
	}
//================================================

	public Integer getLimits() {
		return limits;
	}
	public void setLimits(Integer limits) {
		this.limits = limits;
	}
	public Integer getPages() {
		return pages;
	}
	public void setPages(Integer pages) {
		this.pages = pages;
	}
	public Integer getYear() {
		return year;
	}
	public void setYear(Integer year) {
		this.year = year;
	}
	public Integer getLevel() {
		return level;
	}
	public void setLevel(Integer level) {
		this.level = level;
	}
	public Integer getGrade() {
		return grade;
	}
	public void setGrade(Integer grade) {
		this.grade = grade;
	}
	public Integer getClazz() {
		return clazz;
	}
	public void setClazz(Integer clazz) {
		this.clazz = clazz;
	}
	public Integer getNo() {
		return no;
	}
	public void setNo(Integer no) {
		this.no = no;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
}
